package com.cgq.pro.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cgq.base.service.impl.BaseServiceImpl;
import com.cgq.pro.dao.PhotoTypeDao;
import com.cgq.pro.entity.PhotoType;
import com.cgq.pro.service.PhotoTypeService;

@Service
public class PhotoTypeServiceImpl extends BaseServiceImpl<PhotoType> implements
		PhotoTypeService {
	private PhotoTypeDao photoTypeDao;

	@Autowired
	public void setPhotoTypeDao(PhotoTypeDao photoTypeDao) {
		this.photoTypeDao = photoTypeDao;
		this.baseDao=photoTypeDao;
	}

	public List<PhotoType> findByType(String type) {
		return photoTypeDao.findByType(type);
	}
	
	
}
